/**
 * Created by splendourbell on 2017/8/2.
 */

const GravityMode = {
    NO_GRAVITY : 0x0000,
    AXIS_SPECIFIED : 0x0001,
    AXIS_PULL_BEFORE : 0x0002,
    AXIS_PULL_AFTER : 0x0004,
    AXIS_CLIP : 0x0008,
    AXIS_X_SHIFT : 0,
    AXIS_Y_SHIFT : 4,
    TOP : (0x0002|0x0001)<<4,
    BOTTOM : (0x0004|0x0001)<<4,
    LEFT : (0x0002|0x0001)<<0,
    RIGHT : (0x0004|0x0001)<<0,
    CENTER_VERTICAL : 0x0001<<4,
    FILL_VERTICAL : ((0x0002|0x0001)<<4)|((0x0004|0x0001)<<4),
    CENTER_HORIZONTAL : 0x0001<<0,
    FILL_HORIZONTAL : ((0x0002|0x0001)<<0)|((0x0004|0x0001)<<0),
    CENTER : (0x0001<<4)|(0x0001<<0),
    FILL : (((0x0002|0x0001)<<4)|((0x0004|0x0001)<<4))|(((0x0002|0x0001)<<0)|((0x0004|0x0001)<<0)),
    CLIP_VERTICAL : 0x0008<<4,
    CLIP_HORIZONTAL : 0x0008<<0,
    RELATIVE_LAYOUT_DIRECTION : 0x00800000,
    HORIZONTAL_GRAVITY_MASK : (0x0001 | 0x0002 | 0x0004) << 0,
    VERTICAL_GRAVITY_MASK : (0x0001 | 0x0002 | 0x0004) << 4,
    DISPLAY_CLIP_VERTICAL : 0x10000000,
    DISPLAY_CLIP_HORIZONTAL : 0x01000000,
    START : 0x00800000 | ((0x0002|0x0001)<<0),
    END : 0x00800000 | ((0x0004|0x0001)<<0),
    RELATIVE_HORIZONTAL_GRAVITY_MASK : (0x00800000 | ((0x0002|0x0001)<<0)) | (0x00800000 | ((0x0004|0x0001)<<0))
};
Object.freeze(GravityMode)

export default GravityMode